package com.nengchuan.kbms.dfs.dao;

import com.nengchuan.kbms.dfs.entity.po.DataFileInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 文件额外信息表 Mapper 接口
 * </p>
 *
 * @author abe
 * @since 2020-04-20
 */
@Repository
public interface DataFileInfoMapper extends BaseMapper<DataFileInfo> {

    /**
     * 下载（预览）次数 +1
     */
    void incrementCount(@Param("file_id") Long fileId, @Param("type") String type);

}
